package com.ysd.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysd.common.utils.PageUtils;
import com.ysd.gulimall.order.entity.OrderEntity;
import com.ysd.gulimall.order.vo.OrderConfirmVo;
import com.ysd.gulimall.order.vo.OrderSubmitVo;
import com.ysd.gulimall.order.vo.SubmitOrderResponseVo;

import java.util.Map;

/**
 * 订单
 *
 * @author Clerk
 * @email 1943981380@qq.com
 * @date 2020-07-12 11:40:35
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //订单确认页返回要用的数据
    OrderConfirmVo confirmOrder() throws InterruptedException;

    /**
     * 创建订单
     * @param vo
     * @return
     */
    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    PageUtils queryPageWithItem(Map<String, Object> params);
}

